﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace InfoPick.Lib.Log
{
    public class Log
    {
        public static void WriteLog(string message)
        {
            string file = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "log.txt");
            if (!File.Exists(file))
            {
                using (var sw = File.CreateText(file))
                {
                }
            }

            using (var fs = File.AppendText(file))
            {
                fs.WriteLine(message);
                fs.Flush();
            }
        }
    }
}
